package com.hit.RuningGirl.sprite;

/**
 * 加载星星对象
 */

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.physics.box2d.Body;
import com.hit.RuningGirl.main.Yelling;

public class Star extends GameSprite {

	private Texture tex;

	public Star(Body body) {
		super(body);

		tex = Yelling.assetManager.get("images/stars.png", Texture.class);

		TextureRegion[] region = TextureRegion.split(tex, 24, 24)[0];
		//实例化动画
		setAnimation(region, 1 / 12f);
	}
}
